package com.xian.im;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.SpringApplicationRunListener;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cache.annotation.EnableCaching;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.retry.annotation.EnableRetry;
import org.springframework.scheduling.annotation.EnableAsync;
import org.springframework.scheduling.annotation.EnableScheduling;
import springfox.documentation.swagger2.annotations.EnableSwagger2;

/**
 *
 * @Author: xlr
 * @Date: Created in 2020/5/31 10:45
 * @Description: 启动类
 */
@EnableAsync
@EnableRetry
@SpringBootApplication
@EnableCaching
@EnableScheduling
@EnableSwagger2
@EnableDiscoveryClient
@EnableFeignClients(basePackages = { "com.xian.feign","com.xian.feign.api" })
public class BusinessApplication implements SpringApplicationRunListener {

    public static void main(String[] args) {
        SpringApplication.run(BusinessApplication.class, args);
    }

}
